<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/translator.tld" prefix="trans" %>
<trans:initPage module="alerters" />

<html:form action="/alerter">
<html:hidden property="id"/>
<html:hidden property="mode" value="save"/>
<table align="center" width="90%" cellspacing="1" cellpadding="5" border="0" bgcolor="#3399CC" class="text_search">
<tr><td class=textalb><trans:showPageMessage label="editalerters.newalerter" /></td></tr>
	<tr>
		<td align=right bgcolor=ffffff>
		<b><trans:showPageMessage label="editalerters.name" />:</b>
		</td>
		<td bgcolor=ffffff>
		<html:text size="60" property="name" styleClass="text"/>				
		<font color="red"><html:errors property="name"/></font>
		</td>
	</tr>
	<tr>
		<td align=right bgcolor=ffffff>
		<b><trans:showPageMessage label="editalerters.purpose" />:</b>
		</td>
		<td bgcolor=ffffff>
		<html:textarea property="purpose" styleClass="text" rows="7" cols="60" />				
		</td>
	</tr>
	<tr>
		<td align=right bgcolor=ffffff>
		<b><trans:showPageMessage label="editalerters.enabled" />:</b>
		</td>
		<td bgcolor=ffffff>
		<html:select property="enabled" styleClass="text">
			<html:option value="true"><trans:showPageMessage label="editalerters.yes" hide_link="true" /></html:option>
			<html:option value="false"><trans:showPageMessage label="editalerters.no" hide_link="true" /></html:option>
		</html:select>
		</td>
	</tr>
	<tr>
		<td align=right bgcolor=ffffff>
		<b><trans:showPageMessage label="editalerters.generatemailalert" />:</b>
		</td>
		<td bgcolor=ffffff>
		<html:select property="mailable" styleClass="text">
			<html:option value="true"><trans:showPageMessage label="editalerters.yes" hide_link="true" /></html:option>
			<html:option value="false"><trans:showPageMessage label="editalerters.no" hide_link="true" /></html:option>
		</html:select>
		</td>
	</tr>
	<tr>
		<td align=right bgcolor=ffffff>
		<b><trans:showPageMessage label="editalerters.alertertype" />:</b>
		</td>
		<td bgcolor=ffffff>
		<html:select property="intersection" styleClass="text">
			<html:option value="true"><trans:showPageMessage label="editalerters.filterintersection" hide_link="true" /></html:option>
			<html:option value="false"><trans:showPageMessage label="editalerters.filterunion" hide_link="true" /></html:option>
		</html:select>
		</td>
	</tr>
	
	<tr>
		<td align=right bgcolor=ffffff>
		<b><trans:showPageMessage label="editalerters.priority" />:</b>
		</td>
		<td bgcolor=ffffff>
		<html:select property="priority" styleClass="text">
			<html:option value="1"><trans:showPageMessage label="editalerters.LOW" hide_link="true" /></html:option>
			<html:option value="2"><trans:showPageMessage label="editalerters.NORMAL" hide_link="true" /></html:option>
			<html:option value="3"><trans:showPageMessage label="editalerters.HIGH" hide_link="true" /></html:option>
		</html:select>
		</td>
	</tr>
	<tr>
		<td colspan=2 bgcolor=ffffff align=center>
			<html:submit styleClass="butonsave" property="save">
			  <logic:notEqual name="editAlerterForm" property="id" value="0">
			  <trans:showPageMessage label="editalerters.Submitchanges" hide_link="true" />
			  </logic:notEqual>
			  <logic:equal name="editAlerterForm" property="id" value="0">
			  <trans:showPageMessage label="editalerters.addthisalerter" hide_link="true" />
			  </logic:equal>
			</html:submit>
			<p>	
		</td>
	</tr><trans:showPageMessage label="translator.showhiddentags"/>
</html:form>